﻿namespace MultipleMonitorVideo.Views
{
    using System;
    using System.ComponentModel;
    using ViewModels;

    /// <summary>
    ///     Interaction logic for ControlPanelView.xaml
    /// </summary>
    [CLSCompliant(false)]
    public partial class ControlPanelView
    {
        public ControlPanelView()
        {
            this.InitializeComponent();
        }

        private void ControlPanelWindow_OnClosing(object sender, CancelEventArgs e)
        {
            ControlPanelViewModel viewModel = this.DataContext as ControlPanelViewModel;
            viewModel.CloseAllWindows();
        }
    }
}